﻿drop table exists `${model.TableModel.TableName}`;
CREATE TABLE `${model.TableModel.TableName}` (
$foreach(row in model.TableModel.TableFieldModels)
$if(row.IsKey)
  `$row.Field` $row.TypeNameFull unsigned NOT NULL AUTO_INCREMENT,
$else
  `$row.Field` $row.TypeNameFull DEFAULT NULL,
$end
$end
$foreach(row in model.TableModel.TableFieldModels)
$if(row.IsKey)
  PRIMARY KEY (`$row.Field`)
$end
$end
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;